package cnic.ai.nacos.controller

import cnic.ai.nacos.NacosDiscoveryClient2
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("quartz")
class QuartzRequestController {
    @Autowired
    private val provideClient: NacosDiscoveryClient2? = null

    @RequestMapping("/{who}")
    fun sayHello(@PathVariable who: String): String? {
        return provideClient?.hello(who)
    }
}